@echo off
set GRADLE=../gradlew.bat -b ../build.gradle -c ../settings.gradle

:b1
set param=%1%
if "%param%"=="" (
echo without input param
goto b2
)else (
echo receive param %param%
set var=%param%
goto a0
)

:b2
echo Please select output:
echo 1.EducationRelease all(DEMO/APK)
echo 2.EducationRelease.apk
echo 3.EducationPreRelease.apk
echo 4.EducationTest.apk
set /p var=Please input number:
goto a0

:a0
if %var%==1 goto a1
if %var%==2 goto a2
if %var%==3 goto a3
if %var%==4 goto a4
echo input error&pause&cls&goto b2

:a1
echo -----------------------------------------------------------------
call %GRADLE% PACK_EDUCATION_RELEASE_APK_ALL
pause&exit

:a2
echo -----------------------------------------------------------------
call %GRADLE% PACK_EDUCATION_RELEASE_APK
pause&exit

:a3
echo -----------------------------------------------------------------
call %GRADLE% PACK_EDUCATION_PRE_APK
pause&exit

:a4
echo -----------------------------------------------------------------
call %GRADLE% PACK_EDUCATION_TEST_APK
pause&exit